package com.tdkj.action.front.user;

import java.util.List;

import javax.annotation.Resource;

import com.opensymphony.xwork2.ActionContext;
import com.tdkj.action.BaseAction;
import com.tdkj.model.user.BeanFriend;
import com.tdkj.model.user.BeanUser;
import com.tdkj.service.user.IBeanUserService;
import com.tdkj.util.PublicConfing;
public class UserAction  extends BaseAction{
	private Long friendId;
	private String info;
	private IBeanUserService userServiece;
	public Long getFriendId() {
		return friendId;
	}
	public void setFriendId(Long friendId) {
		this.friendId = friendId;
	}
	public String getInfo() {
		return info;
	}
	public void setInfo(String info) {
		this.info = info;
	}
	public IBeanUserService getUserServiece() {
		return userServiece;
	}
	@Resource
	public void setUserServiece(IBeanUserService userServiece) {
		this.userServiece = userServiece;
	}
	
	//添加好友
	public String addFriend(){
		BeanUser user= (BeanUser) ActionContext.getContext().getSession().get(PublicConfing.MEMBER_MEMBWE_OBJ_STRING_CONFIG);
		Long uId=6L;//user.getId();
		info=userServiece.addUser(uId,this.getFriendId());
		return "addFriend";
	}
	
	
	
}
